package com.nbsaas.boot.product.rest.convert;

import com.nbsaas.boot.product.data.entity.ProductImage;
import com.nbsaas.boot.product.api.domain.simple.ProductImageSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商品图片-列表对象转换器
*/

public class ProductImageSimpleConvert implements Converter<ProductImageSimple, ProductImage> {




@Override
public ProductImageSimple convert(ProductImage source) {
    ProductImageSimple result = new ProductImageSimple();

                result.setNote(source.getNote());
                result.setProductId(source.getProductId());
                result.setDescription(source.getDescription());
                result.setSort(source.getSort());
                result.setTitle(source.getTitle());
                result.setAddDate(source.getAddDate());
                result.setEnabled(source.getEnabled());
                result.setFileSize(source.getFileSize());
                result.setImageUrl(source.getImageUrl());
                result.setWidth(source.getWidth());
                result.setId(source.getId());
                result.setImageType(source.getImageType());
                result.setSkuId(source.getSkuId());
                result.setFileFormat(source.getFileFormat());
                result.setHeight(source.getHeight());
                result.setLastDate(source.getLastDate());


    return result;
}

}